package dom;

public class Duck extends Animal implements ISwim,IRun{
    public Duck() {
        super("鸭子");
    }

    @Override
    public void eat() {
        System.out.println(name+"正在吃鸭粮");
    }

    @Override
    public void run() {
        System.out.println(name+"正在用两条腿跑...");
    }

    @Override
    public void swim() {
        System.out.println(name+"正在用两条腿游泳...");
    }
}
